using Corpus.Application.Const;

namespace Corpus.Application.Entity;
/// <summary>
/// 语料库
/// </summary>
[SugarTable("ylk_yuliaok", "语料库")]
[Tenant(ApplicationConst.ConfigId)]
public class YuLiaoK : EntityBase
{
    /// <summary>
    /// 词义
    /// </summary>
    [SugarColumn(ColumnDescription = "词义", Length = 32)]
    [Required, MaxLength(32)]
    public string word { get; set; }
    /// <summary>
    /// 作者
    /// </summary>
    [SugarColumn(ColumnDescription = "作者")]
    public string author { get; set; }
    /// <summary>
    /// 图片路径
    /// </summary>
    [SugarColumn(ColumnDescription = "图片路径")]
    public string gif { get; set; }
    /// <summary>
    /// 状态
    /// </summary>
    [SugarColumn(ColumnDescription = "状态")]
    public int state { get; set; } = 0;
    /// <summary>
    /// 最后更新时间
    /// </summary>
    [SugarColumn(ColumnDescription = "最后更新时间")]
    public DateTime LastDate { get; set; }= DateTime.Now;
}